package org.xshop.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import top.ibase4j.core.base.BaseModel;

/**
 * <p>
 * 商品分类
 * </p>
 *
 * @author ShenHuaJie
 * @since 2017-03-19
 */
@TableName("t_goods_classify")
@ApiModel(value = "商品分类", description = "商品分类")
@SuppressWarnings("serial")
public class TGoodsClassify extends BaseModel {

    /**
     * 分类名称
     */
    @TableField("classify_name")
    @ApiModelProperty("分类名称")
    private String classifyName;
    /**
     * 手机别名
     */
    @TableField("on_phone_name")
    @ApiModelProperty("手机别名")
    private String onPhoneName;
    /**
     * 上级分类
     */
    @ApiModelProperty("上级分类")
    @TableField("parent_id")
    private Long parentId;
    /**
     * 数量单位
     */
    @TableField("quantity_unit")
    @ApiModelProperty("数量单位")
    private String quantityUnit;
    /**
     * 排序
     */
    @ApiModelProperty("排序")
    @TableField("sort_no")
    private Integer sortNo;
    /**
     * 关键字
     */
    @TableField("key_word")
    @ApiModelProperty("关键字")
    private String keyword;

    @TableField(exist = false)
    @ApiModelProperty("上级分类名称")
    private String parentName;

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public String getOnPhoneName() {
        return onPhoneName;
    }

    public void setOnPhoneName(String onPhoneName) {
        this.onPhoneName = onPhoneName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getQuantityUnit() {
        return quantityUnit;
    }

    public void setQuantityUnit(String quantityUnit) {
        this.quantityUnit = quantityUnit;
    }

    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }
}